unit Main2;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls,RepPrint,frxExportPDF;

type
  TFormMain2 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    procedure Button1Click(Sender: TObject);
    procedure FormCreate(Sender: TObject);
    procedure Button2Click(Sender: TObject);
  private
    { Private declarations }
    FRepPrint : TRepPrint;
    FRepData : OleVariant;
  public
    { Public declarations }
  end;

var
  FormMain2: TFormMain2;

implementation

{$R *.dfm}

procedure TFormMain2.Button1Click(Sender: TObject);
begin
  FRepPrint.DesignRep(FRepData);
end;

procedure TFormMain2.FormCreate(Sender: TObject);
begin
  FRepPrint := TRepPrint.Create(Self);
end;

procedure TFormMain2.Button2Click(Sender: TObject);
begin
  //FRepPrint.
end;

end.
